<?php
  echo '<pre>';
  print_r($_GET);


  echo $id = decrypt(str_replace(' ','+',$_GET['id']));

$idArray = explode('#',$id);
echo '<hr>';
echo "$idArray[1] > ".time();
echo '<hr>';
if($idArray[1] < time()) {
  echo 'expire';
} else {
  echo 'wow Okay :) ';
}

//print_r($idArray);
  echo '</pre>';


  function decrypt($encrypted='')
  {
        $encrypted = trim($encrypted);

    // This is 32 bit salt value change it
    $salt = '9iwjwj455aufj4669gafmdfkt244h45t';

    $decrypted = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256,
                                      md5($salt),
                                      base64_decode($encrypted),
                                      MCRYPT_MODE_CBC,
                                      md5(md5($salt))
                                      ),
                  "\0");
    return ($decrypted);
  }
